package com.aj.activity;

import android.os.Bundle;
import android.widget.FrameLayout;
import android.widget.Toast;

import com.aj.activity.view.GestureContentView;
import com.aj.activity.view.GestureDrawl.GestureCallBack;

public class GestureActivity extends BaseActivity {

	private FrameLayout body_layout;
	private GestureContentView content;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_gesture);
		initView();
	}

	private void initView() {
		setActionBarTitle(R.string.safe_update_gesture_password_text);
		body_layout = (FrameLayout) findViewById(R.id.body_layout);
		content = new GestureContentView(this, "123654789",
				new GestureCallBack() {
					@Override
					public void checkedSuccess() {
						Toast.makeText(GestureActivity.this, "校验成功",
								Toast.LENGTH_SHORT).show();
					}

					@Override
					public void checkedFail() {
						Toast.makeText(GestureActivity.this, "校验失败",
								Toast.LENGTH_SHORT).show();
					}
				});
		content.setParentView(body_layout);
	}
}
